﻿using ReactiveUI.Fody.Helpers;
using ReactiveUI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive;
using System.Text;
using System.Threading.Tasks;

namespace ScienceAIApp.ViewModels.AlertViewModel;
public class InfoAlertViewModel : AlertBaseViewModel
{
    [Reactive]
    public string Title { get; set; }

    [Reactive]
    public string InfoMessage { get; set; }

    public ReactiveCommand<Unit, Unit> CloseCommand { get; }



    public InfoAlertViewModel(string msg = "")
    {
        Title = "InfoAlert";
        InfoMessage = msg;
        Width = 600;
        Height = 600;
        Left = 500;
        Top = 500;

        CloseCommand = ReactiveCommand.CreateFromTask(async () =>
        {
            await AppEnvironment.Instance.AlertWindow.Hide();
        });
    }

}
